package edu.bw.dao;

import edu.bw.dto.InsertRoleForm;
import edu.bw.dto.SelectRoleByConditionForm;
import edu.bw.dto.UpdateRoleForm;
import edu.bw.pojo.Role;
import edu.bw.utils.PageUtils;

import java.util.List;
import java.util.Map;

public interface RoleDao {
    List<Map<String,Object>> selectRoleByCondition(SelectRoleByConditionForm selectRoleByConditionForm);

    Long selectRoleByConditionCount(SelectRoleByConditionForm selectRoleByConditionForm);

    Integer insert(Role role);

    List<Map<String, Object>> selectById(Integer id);

    Integer update(UpdateRoleForm updateRoleForm);

    boolean selectCanDelete(List<Integer> ids);

    Integer deleteRoleByIds(List<Integer> ids);

    List<Map<String, Object>> selectAllRole();
}
